package org.com.yz.dal.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 提现记录表
 * </p>
 *
 * @author wzc123
 * @since 2018-08-02
 */
@TableName("with_draw_info")
@Getter
@Setter
public class WithDrawInfo extends Model<WithDrawInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id_with_draw", type = IdType.AUTO)
    private Integer id_with_draw;
    /**
     * 银行系统流水号
     */
    private String sno;
    /**
     * 电商平台号
     */
    @TableField("mch_no")
    private String mchNo;
    /**
     * 提现账户号
     */
    @TableField("mch_accnt_no")
    private String mchAccntNo;
    /**
     * 订单号
     */
    @TableField("order_no")
    private String orderNo;
    /**
     * 事务号
     */
    @TableField("transcational_no")
    private String transcationalNo;
    /**
     * 提现金额
     */
    @TableField("trans_amt")
    private Long transAmt;

    /**
     * 提现后金额
     */
    @TableField("after_amt")
    private Long afterAmt;

    /**
     * 提现时间
     */
    @TableField("trans_time")
    private String  transTime;

    private String  transDate;
    /**
     * 提现手续费
     */
    @TableField("trans_fee")
    private Long transFee;
    /**
     * 提现卡号
     */
    @TableField("card_no")
    private String cardNo;
    /**
     * 提现状态（1：成功，2：失败：3：未决）
     */
    private String status;
    /**
     * 备注信息（如果状态为失败，则该字段为失败原因）
     */
    private String remark;
    /**
     * 预留字段
     */
    private String remark1;
    /**
     * platform:平台承担，withdraw：提现账户承担
     */
    @TableField("fee_bear")
    private String feeBear;

    private String createTime;//创建时间

    private String updateTime;//修改时间


    private String notifyUrl;//异步回调地址



    @Override
    protected Serializable pkVal() {
        return this.id_with_draw;
    }

    @Override
    public String toString() {
        return "WithDrawInfo{" +
        "idWithDraw=" + id_with_draw +
        ", sno=" + sno +
        ", mchNo=" + mchNo +
        ", mchAccntNo=" + mchAccntNo +
        ", orderNo=" + orderNo +
        ", transcationalNo=" + transcationalNo +
        ", transAmt=" + transAmt +
        ", transTime=" + transTime +
        ", transFee=" + transFee +
        ", cardNo=" + cardNo +
        ", status=" + status +
        ", remark=" + remark +
        ", remark1=" + remark1 +
        ", feeBear=" + feeBear +
        "}";
    }
}
